package com.weu.service.impl;

import com.weu.bean.CarType;
import com.weu.mapper.CarTypeMapper;
import com.weu.service.ICarTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CarTypeServiceImpl implements ICarTypeService {

    @Resource
    private CarTypeMapper carTypeMapper;

    @Override
    public List<CarType> getAll() {
        return carTypeMapper.getAll();
    }

    @Override
    public CarType getOne(int id) {
        return carTypeMapper.getOne(id);
    }

    @Override
    public int delById(int id) {
        return carTypeMapper.delById(id);
    }

    @Override
    public int updateCarType(CarType carType) {
        return carTypeMapper.updateCarType(carType);
    }

    @Override
    public int saveCarType(CarType carType) {
        return carTypeMapper.saveCarType(carType);
    }
}
